# -- coding: utf-8 -- 
# Name: 建forms

from wtforms import Form,StringField.BooleanField
from wtforms.validators import InputRequired,Length,Email

class LoginForm(Form):
    username = StringField(label='用户名',
                           validators=[InputRequired('you need input username'), Length(4,20,'username is 4-20')],)
    password = StringField(label='密码',
                           validators=[InputRequired('you need input password'), Length(6, 9, 'username is 6-9')], )
